﻿@model blacksoft.Models.Producto_x_Proveedor

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutCompras.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Editar Producto de Proveedor</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IDProducto_x_Proveedor)
                @Html.HiddenFor(model => model.Estado)

                <div class="form-row">
                    @Html.Label("Proveedor")
                    @Html.DropDownList("IDPersona", null, String.Empty, new {@disabled = "disabled" })
                    @Html.HiddenFor(model => model.IDPersona)
                    @Html.ValidationMessageFor(model => model.IDPersona)
                </div>

                <div class="form-row">
                    @Html.Label("Producto")
                    @Html.DropDownList("IDProducto", null, String.Empty, new { @readonly = "readonly", @disabled = "disabled" })
                    @Html.HiddenFor(model => model.IDProducto)
                    @Html.ValidationMessageFor(model => model.IDProducto)
                </div>

                <div class="form-row">
                    @Html.LabelFor(model => model.Precio, new { @class = "control-label col-md-2" })
                    @Html.EditorFor(model => model.Precio)
                    @Html.ValidationMessageFor(model => model.Precio)
                </div>

                <br />
                <div class="form-group">
                        <input type="submit" value="Guardar" class="btn btn-default" />
                        <br />
                        @Html.ActionLink("Regresar", "Index")
                </div>
            </div>
        }
    </div>
</div>
